
const rightMenuMixin = {
    computed: {
        //右键菜单
        rightMenu() {

            return this.$store.state.rightMenu;
        },
        //右键菜单位置
        rightMenuPosition: {

            get() {
                return this.$store.state.rightMenuPosition;
            },
        },
        // 是否显示右键菜单
        isRightClickMenu: {
            get() {
                return this.$store.state.isRightClickMenu;
            },
            set(v) {
                this.$store.commit("setIsRightClickMenu", v);
            },
        },
        // 选中的数据
        selectMenuTtem: {
            get() {
                return this.$store.state.selectMenuTtem;
            },
            set(v) {
                this.$store.commit("setSelectMenuTtem", v);
            }
        },
        rightMenuData: {
            get() {
                return this.$store.state.rightMenuData;
            },
            set(v) {
                this.$store.commit("setRightMenuData", v);
            }
        }
    },


}
export default rightMenuMixin